package com.ln.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface SqlMapper {
	@Select("SELECT COUNT(1) FROM ${table}")
	int count(@Param("table") final String table);
	
	@Delete("DELETE FROM ${table} WHERE ${PKName} = #{id}")
	void deleteById(@Param("table") final String table, @Param("PKName") final int PKName, @Param("id") final int id);
}
